package com.nativetalk.service.member.course.search;

import com.nativetalk.base.Page;
import com.nativetalk.base.RetInfo;
import com.nativetalk.bean.member.course.TdNtMembCourseDetail;

/**
 * Created by lizhun on 16/3/8.
 */
public interface MembCourseSearchService {
    /**
     * @Purpose
     * @Purpose  根据用户id和课程id查找用户最后一条记录
     * @version  2.0
     * @author   lizhun
     * @param    memb_id
     * @param    cou_id
     * @return   TdNtMembCourseDetail
     */
    public TdNtMembCourseDetail findTdNtMembCourseDetail(int memb_id, int cou_id);
    /**
     * @Purpose
     * @Purpose  根据用户id查找用户最后一条记录
     * @version  2.0
     * @author   lizhun
     * @param    memb_id
     * @return   TdNtMembCourseDetail
     */
    public TdNtMembCourseDetail findTdNtMembCourseDetailByMembId(int memb_id);
    /**
     * @Purpose  根据用户id查找用户资金变动记录
     * @version  2.0
     * @author   lizhun
     * @param    page
     * @return   RetInfo
     */
    public RetInfo findTdNtMembCourseDetailByMembId(Page page);

    Integer findTdNtMembTrailSetmeal(Integer memb_id, Integer cou_id);

    Integer findTdNtMembTrailSetmealWithCateId(Integer memb_id, String cateId);
}
